/*YuO8szH0cVixePu/Bt+mG1FEB4hauY/FkzN+awxCluloTZGsEXdz2qDszwqhhXkR*/
/*
 * @Author: xiahui 
 * @PageInfo: 查询
 * @Date: 2019-02-16 14:28:57 
 * @Last Modified by: xiahui
 * @Last Modified time: 2019-04-29 15:04:30
 */
import { AREA, BUTTONID } from '../../constance';
import commonSearch from './commonSearch';
import { setDefData } from '../../../../../scmpub/scmpub/pub/cache';
import { DATASOURCECACHE, DEFCACHEKEY } from '../../constance';

export default function(props) {
	let queryInfo = props.search.getQueryInfo(AREA.srcSearch);
	if (!queryInfo || !queryInfo.querycondition) {
		return;
	}

	// 刷新按钮可用
	props.button.setDisabled({ [BUTTONID.Refresh]: false });
	// 缓存查询条件
	setDefData(DATASOURCECACHE.dataSourceRef28CacheKey, DEFCACHEKEY.query28CacheKey, queryInfo);

	commonSearch.call(this, props, queryInfo);
}

/*YuO8szH0cVixePu/Bt+mG1FEB4hauY/FkzN+awxCluloTZGsEXdz2qDszwqhhXkR*/